Vcenter VmTemplate LibraryItems CreateSpecDiskStorage

Vcenter VmTemplate LibraryItems CreateSpecDiskStorage
Vcenter VmTemplate LibraryItems CreateSpecDiskStorage

The Vcenter VmTemplate LibraryItems CreateSpecDiskStorage schema defines the storage specification for a virtual machine template's disks.

This schema was added in vSphere API 6.8.

JSON Example
{
    "datastore": "string",
    "storage_policy": {
        "type": "string",
        "policy": "string"
    }
}
string
datastore
Optional

Identifier for the datastore associated with a virtual machine template's disk.

This property was added in vSphere API 6.8.

This property is currently required.

If storage_policy is also specified and is incompatible with the datastore, then the disk will be flagged as being out of compliance with the specified storage policy.

When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: Datastore. When operations return a value of this schema as a response, the property will be an identifier for the resource type: Datastore.

storage_policy
Optional

Storage policy for a virtual machine template's disk.

This property was added in vSphere API 6.8.

If missing or null, datastore must be specified and the virtual machine template's disk is created with the default storage policy associated with the datastore.